import Vue from 'vue'
import App from './App'
//引入element-ui依赖
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//路由
import VueRouter from 'vue-router'
//引入路由器
import router from './router'
import axios from 'axios'

Vue.prototype.$axios = axios
axios.defaults.baseURL = '/api' // 跨域问题
axios.defaults.headers.post['Content-Type'] = 'application/json;charset-UTF-8'


Vue.use(VueRouter)
Vue.use(Element)
Vue.config.productionTip = false


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router:router,
  components: { App },
  template: '<App/>'
})

